<!--$embed{"../header.htm"}-->

<!--$if{ space['self']}-->
<div class="searchbar">
<form method="post" action="network.html">
	<input name="key" value="" size="26" class="t_input" type="text">
	<input name="searchsubmit" value="Search Project" class="submit" type="submit">
	<input type="hidden" name="searchmode" value="1" />
	<!--$if{ view=='me'}-->
	<input type="hidden" name="username" value="${space['username']}" />
	<!--$end-->
	<input type="hidden" name="ac" value="blog" />
</form>
</div>
<h2 class="title"><img src="image/app/blog.gif" />Projects</h2>
<div class="tabs_header">
	<ul class="tabs">
		<li${actives['me']}><a href="space.html?uid=${space['uid']}&do=${do}&view=me"><span>My Projects</span></a></li>
		<li${actives['trace']}><a href="space.html?uid=${space['uid']}&do=${do}&view=trace"><span>Followed Projects</span></a></li>
		<li${actives['all']}><a href="space.html?uid=${space['uid']}&do=${do}&view=all"><span>All Projects</span></a></li>
		<li class="null"><a href="cp.html?ac=blog">create a project</a></li>
	</ul>
</div>
<!--$else-->
  <!--${_TPL.put("spacetitle", "Projects")}-->
  <!--$embed{"../space_menu.htm"}-->
<!--$end-->

<div id="content" style="width:640px;">
  <!--$if{ list }-->
  <div class="topic_list">
    <table cellspacing="0" cellpadding="0">
      <thead>
        <tr>
          <td class="subject">Project</td>
          <td class="author">Target Date</td>
          <td class="lastpost">Status</td>
        </tr>
      </thead>
      <tbody>
      <!--$for{value:list}-->
        <tr<!--$if{ for.index%2==1}--> class="alt"<!--$end-->>
          <td class="subject">[<a href="space.html?do=mtag&tagid=${value['tagid']}">${value['title']}</a>] <a href="space.html?uid=${value['uid']}&do=thread&id=${value['tid']}">${value['subject']}</a></td>
          <td class="author"><!--$if{ view!='me'}--><a href="space.html?uid=${value['uid']}" title="${value['targetDate']}">${value['targetDate']}</a><br><!--$end--><em>${value['reminingDate']}</em></td>
          <td class="lastpost"><a href="space.html?uid=${value['lastauthorid']}" title="${_SN[value['lastauthorid']]}">${_SN[value['lastauthorid']]}</a><br><!--${&com.heaven.web.utils.Common.date('MM-dd HH:mm',value['lastpost'].toInteger,1)}--></td>
        </tr>
      <!--$end-->
      </tbody>
    </table>
    <div class="page">${multi}</div>
  </div>
  <!--$else-->
  <div class="c_form">no projects。</div>
  <!--$end-->
</div>

<div id="sidebar" style="width:150px;">
	
	<!--$if{ view=='me'}-->
	<!--$if{ classarr}-->
	<div class="cat">
	<h3>项目分类</h3>
	<ul class="post_list line_list">
		<li<!--$if{ !classid}--> class="current"<!--$end-->><a href="space.html?uid=${space['uid']}&do=blog&view=me">All Projects</a></li>
		<!--$for{class:classarr} $set{classname = class.classname} $set{loopclassid = class.classid}-->
		<li<!--$if{ classid==loopclassid}--> class="current"<!--$end-->>
			<a href="space.html?uid=${space['uid']}&do=blog&classid=${loopclassid}">${classname}</a>
			<!--$if{ space['self']}-->
				<a href="cp.html?ac=class&op=edit&classid=${loopclassid}" id="c_edit_${loopclassid}" onclick="ajaxmenu(event, this.id, 99999)" class="c_edit">编辑</a>
				<a href="cp.html?ac=class&op=delete&classid=${loopclassid}" id="c_delete_${loopclassid}" onclick="ajaxmenu(event, this.id, 99999)" class="c_delete">删除</a>
			<!--$end-->
		</li>
		<!--$end-->
	</ul>
	</div>
	<!--$end-->
	<!--$elseif{ userlist}-->
	<div class="cat">
	<h3>按创建者查看</h3>
	<ul class="post_list line_list">
		<!--$for{entry:userlist}-->
		<li><a href="space.html?uid=${entry.key}&do=blog&view=me">${_SN[entry.key]}</a></li>
		<!--$end-->
	</ul>
	</div>
	<!--$end-->
	
</div>
	
<!--$embed{"../footer.htm"}-->